<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@ include file="/parameter.jsp" %>
<html>
<head>
	<title>后台管理</title>
	<%@ include file="/admin/adminParam.jsp" %>
<script language="javascript">

function toSubmit(){
	var sortname = document.sortForm.boardname.value;
	if(sortname != null && sortname != ""){
		return sortForm.submit();
	}else{
		alert("不能提交空的分类名！");
		document.sortForm.boardname.focus();
		return false;
	}
}
</script>
</HEAD>
<body>
<div class="statusBar"></div>

		<table width="75%" align="center" border="0" cellspacing="5" cellpadding="0" class="table">
		<form name="sortForm" method="post" action="adminAction.do?method=SortAddDo" onSubmit="return Validator.Validate(this, 3)">
		  <tr>
			<td align="right">本级分类名称：</td>
			<td><input type="text" class="input2" id="boardname" name="boardname" size="30" maxlength="50" value="" title="分类名称" datatype="Require" msg="必须填写"></td>
			<td align="left"></td>
		  </tr>
		  <tr>
			<td align="right">是否在首页显示：</td>
			<td><input type="text" class="input2" id="isdisplay" name="isdisplay" size="30" maxlength="50" value="0" readonly title="是否在首页显示" datatype="Require" msg="必须填写"></td>
			<td align="left">默认在首页显示！</td>
		  </tr>
		  <tr>
			<td align="right">分类关键字：</td>
			<td><input type="text" class="input2" id="postkey" name="postkey" size="30" maxlength="50" value="" title="分类关键字"></td>
			<td align="left">添加的分类关键字，没个关键字用逗号分开！</td>
		  </tr>
		  <tr>
			<td align="right">分类序号：</td>
			<td><input type="text" class="input2" id="orderby" name="orderby" size="30" maxlength="50" value="99" title="分类序号"></td>
			<td align="left">添加的分类的排序号，默认为99！</td>
		  </tr>
		  <tr>
			<td>&nbsp;</td>
			<td align="center">
            <a href="#" onClick="toSubmit();"><img border="0" src="/images/submit.gif" align="absMiddle"></a>&nbsp;&nbsp;&nbsp;&nbsp;
            <a href="adminAction.do?method=SortPer"><img border="0" src="/images/return.gif" align="absMiddle"></a>
			</td>
			<td>&nbsp;</td>
		  </tr>
		  </form>
		</table>
</body>
</html>